package com.guaju.yueshangLife.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class PrepareOrderBean {


    /**
     * code : 200
     * msg : 订单生成成功
     * data : {"products":[{"cover":{"path":"/images/v2-e339235eb207b36cdbea50966c09d2d5_b.jpg?imageslim","host":"https://static.nfangxu.com"},"name":"Distinctio illo et.","description":["白色","S"],"price":"48200.00","number":5,"id":141}],"addresses":[{"is_default":0,"contact_name":"Randi Kiehn PhD","contact_phone":"1-856-291-3589 x1305","address":"北京市北京城区海淀区第13街道第328号","id":1}],"coupons":[{"code":"99F2276D75B7829FE5160CB3CABF3959","name":"满460.00减86.00","type":1,"product":[36]}],"payment_method":{"1":"线下转账","2":"支付宝支付","3":"微信支付","4":"钱包支付"},"postage":"0.00","total_account":"48200.00","invoice":[],"invoice_example":{"person":{"type":"person","mobile":"13212341234","email":"example@example.com"},"company":{"type":"company","mobile":"13212341234","email":"example@example.com","company":"月上生活馆有限公司","taxpayer_code":"1234567890"}}}
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * products : [{"cover":{"path":"/images/v2-e339235eb207b36cdbea50966c09d2d5_b.jpg?imageslim","host":"https://static.nfangxu.com"},"name":"Distinctio illo et.","description":["白色","S"],"price":"48200.00","number":5,"id":141}]
         * addresses : [{"is_default":0,"contact_name":"Randi Kiehn PhD","contact_phone":"1-856-291-3589 x1305","address":"北京市北京城区海淀区第13街道第328号","id":1}]
         * coupons : [{"code":"99F2276D75B7829FE5160CB3CABF3959","name":"满460.00减86.00","type":1,"product":[36]}]
         * payment_method : {"1":"线下转账","2":"支付宝支付","3":"微信支付","4":"钱包支付"}
         * postage : 0.00
         * total_account : 48200.00
         * invoice : []
         * invoice_example : {"person":{"type":"person","mobile":"13212341234","email":"example@example.com"},"company":{"type":"company","mobile":"13212341234","email":"example@example.com","company":"月上生活馆有限公司","taxpayer_code":"1234567890"}}
         */

        private PaymentMethodBean payment_method;
        private String postage;
        private String total_account;
        private InvoiceExampleBean invoice_example;
        private List<ProductsBean> products;
        private List<AddressesBean> addresses;
        private List<CouponsBean> coupons;
        private List<?> invoice;

        public PaymentMethodBean getPayment_method() {
            return payment_method;
        }

        public void setPayment_method(PaymentMethodBean payment_method) {
            this.payment_method = payment_method;
        }

        public String getPostage() {
            return postage;
        }

        public void setPostage(String postage) {
            this.postage = postage;
        }

        public String getTotal_account() {
            return total_account;
        }

        public void setTotal_account(String total_account) {
            this.total_account = total_account;
        }

        public InvoiceExampleBean getInvoice_example() {
            return invoice_example;
        }

        public void setInvoice_example(InvoiceExampleBean invoice_example) {
            this.invoice_example = invoice_example;
        }

        public List<ProductsBean> getProducts() {
            return products;
        }

        public void setProducts(List<ProductsBean> products) {
            this.products = products;
        }

        public List<AddressesBean> getAddresses() {
            return addresses;
        }

        public void setAddresses(List<AddressesBean> addresses) {
            this.addresses = addresses;
        }

        public List<CouponsBean> getCoupons() {
            return coupons;
        }

        public void setCoupons(List<CouponsBean> coupons) {
            this.coupons = coupons;
        }

        public List<?> getInvoice() {
            return invoice;
        }

        public void setInvoice(List<?> invoice) {
            this.invoice = invoice;
        }

        public static class PaymentMethodBean {
            /**
             * 1 : 线下转账
             * 2 : 支付宝支付
             * 3 : 微信支付
             * 4 : 钱包支付
             */

            @SerializedName("1")
            private String _$1;
            @SerializedName("2")
            private String _$2;
            @SerializedName("3")
            private String _$3;
            @SerializedName("4")
            private String _$4;

            public String get_$1() {
                return _$1;
            }

            public void set_$1(String _$1) {
                this._$1 = _$1;
            }

            public String get_$2() {
                return _$2;
            }

            public void set_$2(String _$2) {
                this._$2 = _$2;
            }

            public String get_$3() {
                return _$3;
            }

            public void set_$3(String _$3) {
                this._$3 = _$3;
            }

            public String get_$4() {
                return _$4;
            }

            public void set_$4(String _$4) {
                this._$4 = _$4;
            }
        }

        public static class InvoiceExampleBean {
            /**
             * person : {"type":"person","mobile":"13212341234","email":"example@example.com"}
             * company : {"type":"company","mobile":"13212341234","email":"example@example.com","company":"月上生活馆有限公司","taxpayer_code":"1234567890"}
             */

            private PersonBean person;
            private CompanyBean company;

            public PersonBean getPerson() {
                return person;
            }

            public void setPerson(PersonBean person) {
                this.person = person;
            }

            public CompanyBean getCompany() {
                return company;
            }

            public void setCompany(CompanyBean company) {
                this.company = company;
            }

            public static class PersonBean {
                /**
                 * type : person
                 * mobile : 13212341234
                 * email : example@example.com
                 */

                private String type;
                private String mobile;
                private String email;

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getMobile() {
                    return mobile;
                }

                public void setMobile(String mobile) {
                    this.mobile = mobile;
                }

                public String getEmail() {
                    return email;
                }

                public void setEmail(String email) {
                    this.email = email;
                }
            }

            public static class CompanyBean {
                /**
                 * type : company
                 * mobile : 13212341234
                 * email : example@example.com
                 * company : 月上生活馆有限公司
                 * taxpayer_code : 1234567890
                 */

                private String type;
                private String mobile;
                private String email;
                private String company;
                private String taxpayer_code;

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getMobile() {
                    return mobile;
                }

                public void setMobile(String mobile) {
                    this.mobile = mobile;
                }

                public String getEmail() {
                    return email;
                }

                public void setEmail(String email) {
                    this.email = email;
                }

                public String getCompany() {
                    return company;
                }

                public void setCompany(String company) {
                    this.company = company;
                }

                public String getTaxpayer_code() {
                    return taxpayer_code;
                }

                public void setTaxpayer_code(String taxpayer_code) {
                    this.taxpayer_code = taxpayer_code;
                }
            }
        }

        public static class ProductsBean {
            /**
             * cover : {"path":"/images/v2-e339235eb207b36cdbea50966c09d2d5_b.jpg?imageslim","host":"https://static.nfangxu.com"}
             * name : Distinctio illo et.
             * description : ["白色","S"]
             * price : 48200.00
             * number : 5
             * id : 141
             */

            private CoverBean cover;
            private String name;
            private String price;
            private int number;
            private int id;
            private List<String> description;

            public CoverBean getCover() {
                return cover;
            }

            public void setCover(CoverBean cover) {
                this.cover = cover;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public int getNumber() {
                return number;
            }

            public void setNumber(int number) {
                this.number = number;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public List<String> getDescription() {
                return description;
            }

            public void setDescription(List<String> description) {
                this.description = description;
            }

            public static class CoverBean {
                /**
                 * path : /images/v2-e339235eb207b36cdbea50966c09d2d5_b.jpg?imageslim
                 * host : https://static.nfangxu.com
                 */

                private String path;
                private String host;

                public String getPath() {
                    return path;
                }

                public void setPath(String path) {
                    this.path = path;
                }

                public String getHost() {
                    return host;
                }

                public void setHost(String host) {
                    this.host = host;
                }
            }
        }

        public static class AddressesBean {
            /**
             * is_default : 0
             * contact_name : Randi Kiehn PhD
             * contact_phone : 1-856-291-3589 x1305
             * address : 北京市北京城区海淀区第13街道第328号
             * id : 1
             */

            private int is_default;
            private String contact_name;
            private String contact_phone;
            private String address;
            private int id;

            public int getIs_default() {
                return is_default;
            }

            public void setIs_default(int is_default) {
                this.is_default = is_default;
            }

            public String getContact_name() {
                return contact_name;
            }

            public void setContact_name(String contact_name) {
                this.contact_name = contact_name;
            }

            public String getContact_phone() {
                return contact_phone;
            }

            public void setContact_phone(String contact_phone) {
                this.contact_phone = contact_phone;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }
        }

        public static class CouponsBean {
            /**
             * code : 99F2276D75B7829FE5160CB3CABF3959
             * name : 满460.00减86.00
             * type : 1
             * product : [36]
             */

            private String code;
            private String name;
            private int type;
            private List<Integer> product;

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public List<Integer> getProduct() {
                return product;
            }

            public void setProduct(List<Integer> product) {
                this.product = product;
            }
        }
    }
}
